import { createRouter, createWebHistory } from 'vue-router';
import LoginPage from '../views/LoginPage.vue';
import RegisterPage from '../views/RegisterPage.vue';
import HomePage from '../views/HomePage.vue'; // 引入 HomePage 组件
import UserPage from '../views/UserPage.vue'; // 引入 UserPage 组件
import UserMassage from '../views/UserMassage.vue';
import Settings from '../views/Settings.vue'; // 引入 Settings 组件
import Language from '../views/Language.vue';
import Password from '../views/Password.vue';
import FundPassword from '../views/FundPassword.vue';
import Verification from '../views/Verification.vue';
import Kyc from '../views/Kyc.vue';
import PaymentInfo from '../views/PaymentInfo.vue';
import Addpayment from '../views/Addpayment.vue';
import OrderPage from '../views/OrderPage.vue'; 
import Assets from '../views/AssetsPage.vue';
import AssetsInr from '../views/AssetsInr.vue'; 
import Withdraw from '../views/Withdraw.vue';
import WithdrawRecord from '../views/WithdrawRecord.vue';
import WithdrawInr from '../views/WithdrawInr.vue';
import Market from '../views/Market.vue';
const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/login',
    name: 'Login',
    component: LoginPage,
    meta: { keepAlive: false }
  },
  {
    path: '/register',
    name: 'Register',
    component: RegisterPage,
    meta: { keepAlive: false }
  },
  {
    path: '/home',
    name: 'Home',
    component: HomePage,
    meta: { keepAlive: false }
  },
  {
    path: '/user',
    name: 'User',
    component: UserPage,
    meta: { keepAlive: false }
  },
  {
    path: '/message',
    name: 'Message',
    component: UserMassage,
    meta: { keepAlive: false }
  },
  {
    path: '/settings', 
    name: 'Settings',
    component: Settings,
    meta: { keepAlive: false }
    
  },
  {
    path: '/language', 
    name: 'Language',
    component: Language,
    meta: { keepAlive: false } 
  },
  {
    path: '/password', 
    name: 'Password',
    component: Password,
    meta: { keepAlive: false }
  },
  {
    path: '/fundPassword', 
    name: 'FundPassword',
    component: FundPassword,
    meta: { keepAlive: false }
  },
  {
    path: '/verification', 
    name: 'Verification',
    component: Verification,
    meta: { keepAlive: false }
  },
  {
    path: '/kyc', 
    name: 'Kyc',
    component: Kyc,
    meta: { keepAlive: false }
  },
  {
    path: '/paymentInfo', 
    name: 'PaymentInfo',
    component: PaymentInfo,
    meta: { keepAlive: false }
  },
  {
    path: '/addpayment', 
    name: 'Addpayment',
    component: Addpayment,
    meta: { keepAlive: false }
  },
  {
    path: '/order',
    name: 'Order',
    component: OrderPage,
    meta: { keepAlive: false }
  },
  {
    path: '/assets',
    name: 'Assets',
    component: Assets,
    meta: { keepAlive: false }
  },
  {
    path: '/assetsInr',
    name: 'AssetsInr',
    component: AssetsInr,
    meta: { keepAlive: false }
  },
  {
    path: '/withdraw',
    name: 'Withdraw',
    component: Withdraw,
    meta: { keepAlive: false }
  },
  {
    path: '/withdrawRecord',
    name: 'WithdrawRecord',
    component: WithdrawRecord,
    meta: { keepAlive: false }
  },
  {
    path: '/withdrawInr',
    name: 'WithdrawInr',
    component: WithdrawInr,
    meta: { keepAlive: false }
  },
  {
    path: '/market',
    name: 'Market',
    component: Market,
    meta: { keepAlive: false }
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;